#!/usr/bin/env python
# encoding: utf-8
"""
@summary: 剔除NotCarPropertyMapper_1.py执行后的结果，观察剩余的url情况
@author: hongxingfan
@since: 2014年8月11日    上午9:21:35
"""
import re
import sys

if __name__ == "__main__":
    
    pattern = re.compile("/(brand|corp|model)_\\d+(\\_\\d+)?/(photo|picture|pic|newspic)(\\w+)?\\.(s)?html")
    
    for line in sys.stdin:
        line = line.strip()
        cols = line.split("\t")
        
        domain = cols[4]
        if "db.auto.sohu.com" not in domain:
            continue
        url = cols[5]
        fullurl = domain + url
        
        match = pattern.search(fullurl)
        if match:
            print("%s\t%s" % (fullurl, 1))